package com.mingqijia.gassafety.webserver.service;

import com.gap.basic.base.CommonResponse;
import com.mingqijia.gassafety.shared.dto.UserFuncCodePermissionDTO;
import com.mingqijia.gassafety.webserver.request.OrganizationalDepartmentAddRequest;
import com.mingqijia.gassafety.webserver.request.OrganizationalDepartmentEditRequest;
import com.mingqijia.gassafety.webserver.request.OrganizationalDepartmentIdRequest;
import com.mingqijia.gassafety.webserver.request.OrganizationalDepartmentListRequest;
import com.mingqijia.gassafety.webserver.response.OrganizationDepartmentResponse;
import com.mingqijia.gassafety.webserver.response.VccOrganizationDepartmentListResponse;
import com.mingqijia.gassafety.webserver.response.VccOrganizationDepartmentTypeDictResponse;

import java.util.List;

/**
 * @author  zm
 * @className   OrganizationalDepartmentService
 * @Description
 * @createTime 2024/7/30 13:37
 */
public interface OrganizationalDepartmentService {

     CommonResponse<List<OrganizationDepartmentResponse>> getTreeList(OrganizationalDepartmentListRequest req);

     CommonResponse<OrganizationDepartmentResponse> detail(OrganizationalDepartmentIdRequest req);

     CommonResponse<Boolean> add(OrganizationalDepartmentAddRequest req);

     CommonResponse<Boolean> edit(OrganizationalDepartmentEditRequest req);


     CommonResponse<List<VccOrganizationDepartmentTypeDictResponse>> typeDict(String dictCode);

     CommonResponse<List<VccOrganizationDepartmentListResponse>> selectList(String code);

     UserFuncCodePermissionDTO getArea(String spId , String userId);
}
